import request from '@/utils/request'

// 获取文件夹、文件列表
export async function GetAllFiles(params) {
  const res = await request({
    url: '/ctrls/GetAllFiles',
    method: 'post',
    params
  })
  return res
}

// 删除
export async function DeleteFiles(params) {
  const res = await request({
    url: '/ctrls/DeleteFiles',
    method: 'post',
    params
  })
  return res
}

// 上传
export async function Upload(data) {
  const res = await request({
    url: '/ctrls/Upload',
    method: 'post',
    headers: {
      'Accept': 'multipart/form-data'
    },
    data
  })
  return res
}

// 上传Excell文件
export async function AliExcelImp(data) {
  const res = await request({
    url: '/Users/AliExcelImp',
    method: 'post',
    headers: {
      'Accept': 'multipart/form-data'
    },
    data
  })
  return res
}



//
export async function GetTimspan(params, data) {
  const res = await request({
    url: process.env.VUE_APP_BASE_API2 + '/one/GetTimspan',
    method: 'post'
  })
  return res
}

// 币种配置
export async function coinlist() {
  const res = await request({
    url: '/ctrls/coinlist',
    method: 'post'
  })
  return res
}

// 获取 枚举列表
export async function GetEnum() {
  const res = await request({
    url: '/ctrls/GetEnum',
    method: 'post'
  })
  return res
}

// 获取基本配置 免登录
export async function GetConfig(params) {
  const res = await request({
    url: '/ctrls/GetConfig',
    method: 'post',
    params
  })
  return res
}

